	var startPoint;
	let app = getApp();
	export default {
		name: 'orderdetail',
		data() {
			return {
				data: '',
				buttontop: 100,
				buttonleft: 100,
				windowheight: '',
				windowwidth: '',
			}
		},
		props: {
			// 是否展示
			buttontop: {
				type: Number,
				value: 0,
			},buttonleft: {
				type: Number,
				value: 0,
			},windowheight: {
				type: Number,
				value: 0,
			},windowwidth: {
				type: Number,
				value: 0,
			},
		},
		// beforeMount() {
		// 	let that = this;
		// 	console.log("beforeMount","1111")
		// 	this.windowheight = getApp().globalData.windowheight;
		// 	this.windowwidth = getApp().globalData.windowwidth;
		// 	that.buttontop = this.windowheight  * 0.82; //这里定义按钮的初始位置
		// 	that.buttonleft = this.windowwidth * 0.80; //这里定义按钮的初始位置
			


		// },
		methods: {
			show() {
				app.goToPage('/pages/order/order')
				// uni.navigateTo({
				// 	url: '/pages/order/order',
				// })
			},

			startDrag(event) {
			      event.preventDefault();
			      this.dragging = true;
			      // 记录鼠标点击位置和元素当前位置
			      this.startX = event.clientX - this.buttonleft;
			      this.startY = event.clientY - this.buttontop;
			      // 监听事件
			      document.addEventListener('mousemove', this.onDrag);
			      document.addEventListener('mouseup', this.stopDrag);
			    },
			    onDrag(event) {
			      if (this.dragging) {
			        this.buttonleft = event.clientX - this.startX;
			        this.buttontop = event.clientY - this.startY;
			      }
			    },
			    stopDrag() {
			      this.dragging = false;
			      // 移除事件监听
			      document.removeEventListener('mousemove', this.onDrag);
			      document.removeEventListener('mouseup', this.stopDrag);
			    }
			
		}
	}